Component org.nuxeo.ecm.rating.widgets
In bundle org.nuxeo.ecm.rating.web
Contributions
- org.nuxeo.ecm.rating.widgets--widgets
- org.nuxeo.ecm.rating.widgets--widgettypes
- org.nuxeo.ecm.rating.widgets--actions
XML Source
<?xml version="1.0" encoding="UTF-8"?>
<component name="org.nuxeo.ecm.rating.widgets">
<extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
point="widgettypes">
<widgetType name="document_likes_count">
<configuration>
<sinceVersion>5.7.2</sinceVersion>
<title>Likes Count</title>
<description>
<p>This widget displays how many people like a document.</p>
<p>
It requires the following fields configuration: first field maps
the document model.
</p>
</description>
<categories>
<category>summary</category>
</categories>
<supportedModes>
<mode>view</mode>
</supportedModes>
<!-- no configurable properties -->
</configuration>
<handler-class>
org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
</handler-class>
<property name="template">
/widgets/summary/likes_count_widget_template.xhtml
</property>
</widgetType>
</extension>
<extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
point="widgets">
<widget name="document_likes_count" type="document_likes_count" />
</extension>
<extension target="org.nuxeo.ecm.platform.actions.ActionService"
point="actions">
<action id="summary_document_likes_count" type="widget" order="10">
<category>SUMMARY_INDICATORS</category>
<filter-id>mutable_document</filter-id>
<filter-id>not_folder</filter-id>
<properties>
<property name="widgetName">document_likes_count</property>
</properties>
</action>
</extension>
</component>